<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
html {
  font-family: Arial,Helvetica,sans-serif;
  background-color: white;
  color: black;
}
table {
  border-collapse: collapse;
  empty-cells: show;
  margin: 1em 0em;
  border: 1px solid black;
}
th, td {
  border: 1px solid black;
  padding: 0.1em 0.2em;
  height: 1.5em;
  width: 12em;
}
td.colspan4, th.colspan4 {
    width: 48em;
}
td.colspan3, th.colspan3 {
    width: 36em;
}
td.colspan2, th.colspan2 {
    width: 24em;
}
th {
  background-color: rgb(192, 192, 192);
  color: black;
  height: 1.7em;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.1em;
}
td.name {
  background-color: rgb(240, 240, 240);
  letter-spacing: 0.1em;
}
td.name, th.name {
  width: 10em;
}
</style>
<title>Demo AP</title>
</head>
<body>
<h1>Demo AP</h1>
<table border="1" id="setting">
<tr>
<th class="name" colspan="5">Settings</th>
</tr>
<tr>
<td class="name">Test Teardown</td>
<td>Close All Browsers</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Library</td>
<td>Selenium2Library</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>../Interfaces/global_variables.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>../Interfaces/login_page.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>../Interfaces/home_page.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>../Interfaces/search_page.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>../Actions/login_page_action.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>../Actions/home_page_action.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>../Interfaces/orders_and_quotes_page.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>../Actions/orders_and_quotes_page_action.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>../Interfaces/edit_order.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table border="1" id="testcase">
<tr>
<th class="name" colspan="5">Test Cases</th>
</tr>
<tr>
<td class="name"><a name="test_TC514 Search in ordering portal">TC514 Search in ordering portal</a></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Work Product:\n<br>
US397: Navigation bar implementation- Search\n\nInput\n1 \ \ \ Login to O.portal\n2 \ \ \ In the search text, type subscription name\n3 \ \ \ In the search text, type customer name\n4 \ \ \ In the search text, type customer admin name\n\nExpected Result\nThe search text should populate the search results in the results page (2)(3)(4)\nThe Tabs should be displayed in All, Customer,People, Subscription order\nThe pagination should also occur if it exceeds the max number of search resutls</td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Navigate to Admin PreE page</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Open Browser</td>
<td>${admin pree url}</td>
<td>ff</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Maximize Browser Window</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Login to Admin PreE</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>login</td>
<td>${system admin}</td>
<td>${system admin password}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Verify that user can login Admin PreE successfully</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>2.In the search text, type subscription name</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>search text</td>
<td>${subsciption name}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Page Contains Element</td>
<td>${RESULTS OVERVIEW}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Verify that the search following subscription name successfully</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${RESULTS OVERVIEW}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${ALL TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${CUSTOMER TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${PEOPLE TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${SUBSCRIPTION TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Go back Orders &amp; Quotes to continue search</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>select tab</td>
<td>Orders &amp; Quotes</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>3.In the search text, type customer name</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>search text</td>
<td>${customer name}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Page Contains Element</td>
<td>${RESULTS OVERVIEW}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Verify that the search following customer name successfully</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${RESULTS OVERVIEW}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${ALL TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${CUSTOMER TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${PEOPLE TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${SUBSCRIPTION TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Go back Orders &amp; Quotes to continue search</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>select tab</td>
<td>Orders &amp; Quotes</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>4.In the search text, type customer admin name</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>search text</td>
<td>${customer admin name}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Page Contains Element</td>
<td>${RESULTS OVERVIEW}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Verify that the search following customer admin name successfully</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${RESULTS OVERVIEW}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${ALL TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${CUSTOMER TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${PEOPLE TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${SUBSCRIPTION TAB}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_TC756 System administrator is able to manage all quotes and orders">TC756 System administrator is able to manage all quotes and orders</a></td>
<td>Comment</td>
<td>Navigate to Admin PreE page</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Open Browser</td>
<td>${admin pree url}</td>
<td>ff</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Maximize Browser Window</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>1. Login Admin Portal with system admin account</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>login</td>
<td>${system admin}</td>
<td>${system admin password}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>2. Click on "Orders &amp; Quotes" tab on navigation bar</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>select tab</td>
<td>Orders &amp; Quotes</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>3. Verify the Orders &amp; Quotes on the table.</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Visible</td>
<td>${ORDERS &amp; QUOTES TABLE}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>4. Try to filter Order/Quote Status and delete the Order/Quote.</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>4.1 Filter Deleted</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>filter status</td>
<td>Deleted</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Check Aproval,Pending Aproval, Rejected, Not submitted do not contain on table</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Page Contains Element</td>
<td>${DELETED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${NOT SUBMITTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${APPROVED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${REJECTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${PENDING APPROVAL ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>4.2 Filter Approved &amp; check Deleted,Pending Aproval, Rejected, Not submitted status do not contain on table \</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>filter status</td>
<td>Approved</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Page Contains Element</td>
<td>${APPROVED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${NOT SUBMITTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${DELETED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${REJECTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${PENDING APPROVAL ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>4.3 Filter Rejected &amp; check Deleted,Pending Aproval, Approved, Not Submitted status do not contain on table</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>filter status</td>
<td>Rejected</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Page Contains Element</td>
<td>${REJECTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${NOT SUBMITTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${DELETED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${APPROVED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${PENDING APPROVAL ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>4.4 Filter Not Submitted &amp; check Deleted,Pending Aproval, Approved, Rejected status do not contain on table</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>filter status</td>
<td>Not Submitted</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Page Contains Element</td>
<td>${NOT SUBMITTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${REJECTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${DELETED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${APPROVED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${PENDING APPROVAL ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>4.5 Filter Pending Approval &amp; check Deleted,Not Submitted, Approved, Rejected status do not contain on table</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>filter status</td>
<td>Pending Approval</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Page Contains Element</td>
<td>${PENDING APPROVAL ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${NOT SUBMITTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${REJECTED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${DELETED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Not Contain Element</td>
<td>${APPROVED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>4.6 Try to delete a row on not submit status</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>We need to create a new Order with not submitted status, but we're doing demo so we will do it after.</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>filter status</td>
<td>'Not Submitted'</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Wait Until Page Contains Element</td>
<td>${NOT SUBMITTED ITEMS}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>search on a name filter</td>
<td>${str name filter}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Wait Until Page Contains Element</td>
<td>${first check box in table}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Click Element</td>
<td>${first check box in table}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>sleep</td>
<td>${str waiting time}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Comment</td>
<td>@@@@Get text</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>${txt_OrderNameNeedToDeleted}</td>
<td>Get Text</td>
<td>${order name in first row }</td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Comment</td>
<td>@@@@CLick button deleted</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Click Element</td>
<td>${btn delete selected}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Comment</td>
<td>Check the row that was just deleted if it change to deleted status yet</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>filter status</td>
<td>${str deleted}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Wait Until Page Contains Element</td>
<td>${first row on table of O&amp;Q}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>search on a name filter</td>
<td>${txt_OrderNameNeedToDeleted}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>${txt_OrderNameHaveDeleted}</td>
<td>Get Text</td>
<td>${order name in first row }</td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Should Be Equal As Strings</td>
<td>${txt_OrderNameNeedToDeleted}</td>
<td>${txt_OrderNameHaveDeleted}</td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Comment</td>
<td>Check deleted successfully.</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="test_TC594 Display orders that are in Approved state">TC594 Display orders that are in Approved state</a></td>
<td>Comment</td>
<td>Navigate to Admin PreE page</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Open Browser</td>
<td>${admin pree url}</td>
<td>ff</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Maximize Browser Window</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>1. Login Admin Portal with system admin account</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>login</td>
<td>${system admin}</td>
<td>${system admin password}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>2. Click on "Orders &amp; Quotes" tab on navigation bar</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>select tab</td>
<td>Orders &amp; Quotes</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>The orders table lists \ the following columns in a table:Order/Quote name,order Quote ID,Customer Name,Status , Total Value</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Contain Element</td>
<td>${COLUMN2 AS NAME}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Contain Element</td>
<td>${COLUMN3 AS ID NUMBER}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Contain Element</td>
<td>${COLUMN4 AS CUSTOMER NAME}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Contain Element</td>
<td>${COLUMN5 AS STATUS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Contain Element</td>
<td>${COLUMN6 AS TOTAL QTY}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Page Should Contain Element</td>
<td>${COLUMN7 AS TOTAL VALUE}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Filter Approved</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>filter status</td>
<td>Approved</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Wait Until Page Contains Element</td>
<td>${APPROVED ITEMS}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Click Element</td>
<td>${FIRST ITEM}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Verify these orders cannot be edited once approved successfully</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Element Should Be Disabled</td>
<td>${SAVE &amp; EXIT}</td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
